# continue 和 break

'''
1 continue
    用于结束本次循环，进行下一次循环
2 break
    用于结束循环
'''

while True:
    print("循环开始".center(30, "="))
    input_num = int(input("Please input a number whose type is int:"))
    if input_num > 10:
        print("你输入的数字大于10，我要结束本次循环，进行下一次循环啦")
        continue
    if input_num == 10:
        print("结束循环")
        break
    print("本次循环结束".center(30, "="))

while True:
    print("current circulation start".center(30,"="))
    number = int(input("Please input a number whose type is int:"))
    if number > 10:
        print("go to the next circulation.")
        continue
    if number == 10:
        print("end the whole circulation")
        break
    print("will run every circulation")
    print("current circulation end".center(30, "="))
